// 配置统一管理接口文档
import axios from "@/request/request";
import qs from 'qs'

// 请求热门推荐接口
export const Remen = () => axios.get("/products/hot");
// 请求精品推荐接口
export const Jingpin = () => axios.get("/products/recommend");
// 请求发送注册短信验证码
export const sendSMSAPI = (params) => axios.post("/sendSMS", qs.stringify(params));
// 请求手机号验证码登录(含注册)
export const phoneRegin = (params) => axios.post("/phoneRegin", qs.stringify(params));
// 请求微信扫码登录
export const wechatPCLoginAPI = (params) => axios.post("/wechatUsers/PCLogin", qs.stringify(params));
// 请求手机绑定微信
export const wechatBindingAPI = (params) => axios.post("/wechatUsers/binding", qs.stringify(params));
// 请求用户信息
export const UserProfilesAPI = () => axios.get("/shop/userProfiles");
// 请求详情页
export const GoodDetailsAPI = (params) => axios.get(`/products/${params}`);
// 请求购物车
export const ShopCartsAddAPI = (params) => axios.post("/shop/carts/add", qs.stringify(params));
// 更多商品
export const GoodSearchAPI = (params) => axios.get('/products/', { params });
// 查看购物车
export const ShopCartsAPI = () => axios.get('/shop/carts/');
// 删除购物车
export const DeleteDataAPI = (params) => axios.delete(`/shop/carts?productIds=${params}`)





